<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Admin\Controller;
use User\Api\UserApi as UserApi;

/**
 * 任务管理
 */
class RwglController extends AdminController {

    /**
     * 预约订单分配管理
     */
    public function fenpei(){
		$rwfp  =  D('Rwfp');
		$lists  = $rwfp->select();
		$this->assign('lists',$lists);
        $this->meta_title = '预约订单分配管理';
        $this->display();
    }
	//编辑
	public function edit(){
		$rwfp  =  D('Rwfp');
		if(IS_POST){
			$rwfp->create();
    		$res  = $rwfp->save();
    		if($res){
                S('DB_FENPEICONFIG_DATA',NULL);
    			$this->success('更新成功');
    		}else{
    			$this->error('更新失败');
    		}
    	}
    }

}
